package com.uep.controller;

import com.uep.entity.SchoolInformation;
import com.uep.service.SchoolInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by XQ on 2017/2/20.
 */
@RestController
public class SchoolController {
    @Autowired
    SchoolInformationService schoolInformationService;

    @ResponseBody
    @RequestMapping(value = "/schoolName/{schoolNumber}",method = RequestMethod.GET)
    public SchoolInformation getSchoolName(@PathVariable Integer schoolNumber){
        return schoolInformationService.findSchoolName(schoolNumber);
    }
}
